import request from '@/utils/request'

// 获取所有
export function getList(data) {
  return request({
    url: '/record/list',
    method: 'get',
    params:data
  })
}

// 详情
export function getDsc(id) {
    return request({
        url: `/record/${id}`,
        method: 'get',
    })
}

// 修改
export function getUpdate(data) {
    return request({
      url: '/record',
      method: 'put',
      data
    })
  }

// 删除
export function getRecordDet(id) {
  return request({
      url: `/record/del/${id}`,
      method: 'delete',
  })
}